'''

'''


class Person:
    def __init__(self, name, age=18, gender='女'):
        self.name = name
        self.age = age
        self.gender = gender


p1 = Person('XM', gender='男')
p2 = Person('xh', 20)
print(p1.name)
print(getattr(p1, 'age'))
p1.height = 165
print(p1.height)
setattr(p1, 'weight', 55)
print(p1.weight)
del p1.height
print(p1.height)
# delattr()
